package com.game.module.skill
{
	import com.dusk.util.TextUtil;
	import com.game.view.component.ComponentBase;
	
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	public class SayInfo extends ComponentBase
	{
		
		public function SayInfo()
		{
			super();
			drawUI();
			needDestroyWhenRemove = false;
		}
		
		public var showtxt:TextField;
		
		private function drawUI():void
		{
			var tf:TextFormat = new TextFormat();
			tf.color = 0xFFFFFF;
			tf.font = TextUtil.UNIVERSAL_FONT;
			tf.size = 16;
			showtxt = new TextField();
			showtxt.defaultTextFormat = tf;
			showtxt.embedFonts = true;
			showtxt.x = -75;
			showtxt.y = -34;
			showtxt.width = 150;
			showtxt.height = 23;
			addChild(showtxt);
			graphics.beginFill(0x000000, 0.5);
			graphics.lineStyle(3, 0xFFFFFF, 0.7)
			graphics.drawRoundRect(-75, -38, 150, 34, 10, 10);
			graphics.endFill();
		}
	}
}
